<template>
	<view>
<!-- 		<view class="plan-header">
			<view class="plan-left">
				<text>全天</text>
			</view>
			<view class="plan-right">
				<view class="plan-today-bar">
					<text>劳动节</text>
				</view>
			</view>
		</view> -->
		<view class="plan-list" v-for="(item,index) in todayPlanList" :key="item">
			<view style="display: flex;flex-direction: column;justify-content:space-between">
				<view class="plan-left">
					<text>{{item.startTime}}</text>
				</view>
				<view class="plan-left">
					<text>{{item.endTime}}</text>
				</view>
			</view>
			<view class="plan-right" >
				<view style="width: 100%;">
					<plan-today-card :data='item'></plan-today-card>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				planCommonList:[
					{
						"Id":1,
						"title":"情侣基金计划",
						"time":"2021.5.28-2021.6.28",
						"type_name":"共同计划"
					},
					{
						"Id":2,
						"title":"情侣基金计划",
						"time":"2021.5.28-2021.6.28",
						"type_name":"共同计划"
					}
				]
			};
		},
		props:['todayPlanList']

	}
</script>

<style lang="scss">
	.plan-header{
		display: flex;
		margin-top:29rpx;
	}
	.plan-left{
		width: 130rpx;
		margin-right: 20rpx;
		display: flex;
		justify-content: flex-end;
		align-items:flex-start;
	}
	.plan-today-bar{
		width: 100%;
		background: #dacafc;
		border-radius: 11rpx;
		padding: 7rpx 30rpx;
		color: #ffffff;
	}
	.plan-right{
		width: 100%;
		margin-right: 43rpx;
		margin-left: 20rpx;
		display: flex;
		align-items: center;
	}
	.plan-list{
		display: flex;
		margin-top: 40rpx;
	}
</style>
